﻿using System;
using System.Collections.Generic;
using System.Linq; 
using System.Web;
using System.Web.Mvc;
using Thyme.Web.Models;
using Thyme.Web.ViewModels;

namespace Thyme.Web.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        public ActionResult ViewPost(string slug)
        {
            BlogPost bp = new BlogPost();

            bp.Body = @"markItUp! Universal markup editor
-----------------------------------


**markItUp!** is a javascript over [jQuery](http://www.jquery.com ""jQuery Website"") plug-in which allow you to turn any textarea in a markup editor.

![some alt text for yall](https://pbs.twimg.com/media/BObio_oCMAEwkSI.jpg:large ""this is my pic yall"")


**markItUp!** is a lightweight fully customizable engine made to easily fit all developers needs in their CMS, blogs, forums or websites.

Check out this wicked JavaScrip thtat I have

    <script language=""JavaScript"">
        alert('wowie');
        </script>
_Html, Textile, Wiki Syntax, Markdown, BBcode_ or even your own Markup system can be easily implemented.

- integrate it easily
- customize buttons and macros to fit all your need
- customize keyboard shortcuts
- customize toolbar and css look and feel
 - skins
 - icons
 - dropdown menus
 - separators
- use the engine from anywhere in the page
- implement any markup language even your own
- implement your own javascript macros even the most advanced
- allows multi-line edition
- preview ajax result dynamically in any markup parser
- offers userfriendly experience and effectiveness
";
            return View(new BlogPost_vm {BlogPost=bp });
        
        }
        
        }
}